package cn.mw.cmdb.timetask.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @description 任务记录信息
 */
@Getter
@Setter
@Schema(name = "TaskRecordDto", description = "任务记录信息")
public class TaskRecordDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "任务ID")
    private String jobId;

    @Schema(description = "任务名称")
    private String jobName;

    @Schema(description = "任务实例ID")
    private String instanceId;

    @Schema(description = "该任务实例所属的 workflow ID，仅 workflow 任务存在")
    private String wfInstanceId;

    @Schema(description = "执行结果")
    private String result;

    @Schema(description = "TaskTracker地址")
    private String taskTrackerAddress;

    @Schema(description = "总共执行的次数")
    private Long runningTimes;

    @Schema(description = "执行状态")
    private int status;

    @Schema(description = "实际触发时间")
    private String actualTriggerTime;

    @Schema(description = "结束时间")
    private String finishedTime;

    @Schema(description = "任务预计执行时间")
    private String expectedTriggerTime;

    @Schema(description = "任务参数")
    private String jobParams;

    @Schema(description = "启动参数")
    private String instanceParams;

    @Schema(description = "任务执行日志")
    private String taskRunLog;
}
